package com.lijian.stu.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HelloController {
	
	@RequestMapping("/hello")
	public String homepage(){
		
		System.out.println("**");
		
		return "hello";
	}
	@RequestMapping("/hello2")
	public ModelAndView home(){ 
		ModelAndView v=new ModelAndView();
		System.out.println("**");
		v.setViewName("hello.jsp");
		return v;
	}

}
